interface Student {
    name: string;
    age: number;
}

// 类型注解
let data:number = 1;
let stu: Student = {
    name: "张三",
    age: 18
}

// 类型推导
let money = 100;
let stu2 = {
    name: "张三",
    age: 18
}
